package com.mai4j.maiadmin.model.http.datatables;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * 表格
 *
 * @author farmer
 */
@Getter
@Setter
@Accessors(chain = true)
public class Datatable {
    /**
     * 绘制次数
     */
    private Integer draw;
    /**
     * 开始条
     */
    private Integer start;
    /**
     * 获取条数
     */
    private Integer length;
    /**
     * 列
     */
    private Map<String, Column> columns = new LinkedHashMap<>();
    /**
     * 排序
     */
    private List<Order> orders;
    /**
     * 搜索
     */
    private Search search = new Search();
    /**
     * 条件
     */
    private Map<String, Condition> conditions = new LinkedHashMap<>();
}
